//
//  CJViewController.m
//  同学录
//
//  Created by administrator on 13-8-6.
//  Copyright (c) 2013年 gyl. All rights reserved.
//

#import "CJViewController.h"

@interface CJViewController ()

@end

@implementation CJViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
//	UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(384, 502, 0, 0)];
//    [imageView setImage:[UIImage imageNamed:@"4.jpg"]];
//    self.first = imageView;
//    [self.view addSubview:imageView];
//    CGContextRef context = UIGraphicsGetCurrentContext();
//    [UIView beginAnimations:nil context:context];
//    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
//    [UIView setAnimationDuration:2.5];
//    [self.first setFrame:CGRectMake(0, 0, 768, 1004)];
//    [UIView commitAnimations];
    UIImageView *splashView = [[UIImageView alloc] initWithFrame:CGRectMake(368, 502, 0, 0)];
    splashView.image = [UIImage imageNamed:@"2.jpg"];
    [self.view addSubview:splashView];
    [self.view bringSubviewToFront:splashView];
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:5.0];
    [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:
     self.view cache:YES];
    [UIView setAnimationDelegate:self];
    [UIView setAnimationDidStopSelector:@selector(startupAnimationDone:finished:context:)];
    splashView.alpha = 0.0;
    splashView.frame = CGRectMake(-60, -85, 768, 1004);
    [UIView commitAnimations];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
